require.config({
  urlArgs: "version=20170501",
  paths: {
    'jquery': '../packages/jquery-2.14-min'
  },
  shim: {
    'bootstrap': {
      deps: ['jquery'],
      exports: 'bootstrap'
    }
  }
});

require(['jquery'], function ($) {

  window.resetForm = function () {
    $("#create-form")[0].reset();
    $("#warn-msg").css('display','none');
  };

  $("#create-form").submit(function () {
    var password = $("#create-form").find("input[name='password']").text();
    var repeat = $("#create-form").find("input[name='repeatPassword']");

    if(repeat !== password) {
      $("#warn-msg").text("两次输入的密码不一致").show()
      return false
    }
  })
});